import request from '@utils/request'

// 查询短语
export function getSays (data) {
  return request({
    url: '/scriptTemplate/getList',
    method: 'get',
    data: data,
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded',
      'Authorization': window.localStorage.getItem('token'),
    }
  })
}


// 新增短语
export function addSay (data) {
  return request({
    url: '/scriptTemplate/add',
    method: 'post',
    data: data,
    headers: {
      'Content-Type': 'application/json',
      'Authorization': window.localStorage.getItem('token'),
    }
  })
}

// 删除短语
export function deleteSay (data) {
  return request({
    url: '/scriptTemplate/del',
    method: 'get',
    params: data,
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded',
      'Authorization': window.localStorage.getItem('token'),
    }
  })
}

